@include('admin.layout.css')
@include('admin.layout.js')

<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">VIP名字</label>
        <div class="layui-input-inline">
            <input type="text" value="{{$info['vip_name']}}"  name="vip_name" lay-verify="required"  placeholder="请输入VIP名称" autocomplete="off" class="layui-input" >
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">VIP价格</label>
        <div class="layui-input-inline">
            <input type="text" value="{{$info['vip_price']}}"  name="vip_price" lay-verify="required"  placeholder="请输入VIP价格" autocomplete="off" class="layui-input" >
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">VIP标识</label>
        <div class="layui-input-inline">
            <input type="text" disabled value="{{$info['vip_index']}}"  name="vip_index" lay-verify="required"  placeholder="请输入VIP标识" autocomplete="off" class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">VIP销售奖</label>
        <div class="layui-input-inline">
            <input type="text" value="{{$info['vip_zongjian_price']}}"  name="vip_zongjian_price" lay-verify="required"  placeholder="请输入VIP销售奖" autocomplete="off" class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">VIP管理奖</label>
        <div class="layui-input-inline">
            <input type="text"  value="{{$info['vip_sp_one_price']}}" name="vip_sp_one_price" lay-verify="required"  placeholder="请输入VIP管理奖" autocomplete="off" class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">管理间推奖(废弃)</label>
        <div class="layui-input-inline">
            <input type="text" value="0" disabled  name="vip_sp_two_price" lay-verify="required"  placeholder="请输入废弃" autocomplete="off" class="layui-input" >
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">本人DF值</label>
        <div class="layui-input-inline">
            <input type="text"  value="{{$info['me_d_price']}}" name="me_d_price" lay-verify="required"  placeholder="请输入本人DF值" autocomplete="off" class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">节点DF值</label>
        <div class="layui-input-inline">
            <input type="text" value="{{$info['point_d_price']}}"  name="point_d_price" lay-verify="required"  placeholder="请输入节点DF值" autocomplete="off" class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">说明</label>
        <div class="layui-input-inline">
            <textarea  name="vip_desc_text" placeholder="请输入内容" class="layui-textarea">{{$info['vip_desc_text']}}</textarea>
        </div>
    </div>

    <input type="hidden" value="{{$info['vip_id']}}" name="vip_id">




    {{csrf_field()}}
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="submit" id="submit" value="确认">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="取消">
    </div>

</div>

<script>

    layui.use(['laydate','form','layedit','layer'], function() {
        let form = layui.form
        laydate = layui.laydate
        layedit = layui.layedit
        layer = layui.layer;

        form.on('submit(submit)', function(data){


            Api.add("{{route('admin.vip.edit_vip')}}",data.field,function(res){
                if (res.code !== 200){
                    Utils.errorToast(res.msg);
                }
            });
        });


    });
</script>


